//
//  Common.swift
//  LTWeibo
//
//  Created by mac on 16/6/24.
//  Copyright © 2016年 mac. All rights reserved.
//

import UIKit


let APPKEY = "1783390782"
let APPSECRET = "ecdb48b20416038f439f667a9d145285"
let REDIRECT_URI = "http://www.taobao.com"

/// 屏幕的宽高
let SCREENW = UIScreen.mainScreen().bounds.width
let SCREENH = UIScreen.mainScreen().bounds.height
/// 主题颜色
let ThemeColor = UIColor.orangeColor()
/// RGB
func rgb(red: CGFloat, green: CGFloat, blue: CGFloat) -> UIColor{
    return UIColor(red: red / 255, green: green / 255, blue: blue / 255, alpha: 1)
}
/// 随机颜色
func RandomColor() -> UIColor{
    let r = CGFloat(random()%256)
    let g = CGFloat(random()%256)
    let b = CGFloat(random()%256)
    return rgb(r, green: g, blue: b)
}
